const fs = require('fs');
const path = require('path');
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
const httpsOptions = {
  key: fs.readFileSync(path.resolve(__dirname, '../secrets/zzpspaceCn.key')),
  cert: fs.readFileSync(path.resolve(__dirname, '../secrets/zzpspaceCn.pem')),
};
async function bootstrap() {
  const app = await NestFactory.create(AppModule, {
    httpsOptions,
  });
  await app.listen(10102);
}
bootstrap();
